#include <iostream>
#include "HttpClient.h"

int main()
{
    HttpClient httpClient;

    std::string data =
        "{\\\"id\\\":\\\"xxxxxx\\\",\\\"op\\\":\\\"response\\\",\\\"action\\\":\\\"callElevator\\\",\\\"data\\\":{\\\"msgType\\\":13,\\\"elevatorId\\\":\\\"1024\\\",\\\"robotId\\\":\\\"2333\\\",\\\"floorNow\\\":2,\\\"errorCode\\\":0,\\\"status\\\":0}}";
    if (!httpClient.post("127.0.0.1:8089/elevatorControl", data))
    {
        std::cout << "post fail" << std::endl;
        return 0;
    }
    std::cout << "post pass" << std::endl;
    while (true)
    {
    }

    return 0;
}
